#ifndef SELECTIONINTELLIGENT_H
#define SELECTIONINTELLIGENT_H

#include "Layer/layer.h"
#include "GraphicsArea/selection.h"

class SelectionIntelligent : public Selection{
public:
    //************************************************************* Constructor
    SelectionIntelligent(DrawingArea* drawingAreaUse);

    void selection(Layer* layerTakeSelection, int x, int y);
    Layer* imageSelected(Layer* layer, int posX = 0, int posY = 0);

    private :
        float threshold;
        // Image on which we make appear the selection
        QImage* imgSelection;
        // Layer in which we ask the selectionnement
        Layer* layerSourceSelection;
};

#endif // SELECTIONINTELLIGENT_H
